math/big.Rat.b (field)
89 uses
math/big (current package)
float.go#L1156: z.b.abs = z.b.abs[:0] // == 1 (see Rat)
float.go#L1160: z.b.abs = z.b.abs[:0] // == 1 (see Rat)
float.go#L1164: t := z.b.abs.setUint64(1)
float.go#L1165: z.b.abs = t.shl(t, uint(allBits-x.exp))
rat.go#L29: a, b Int
rat.go#L64: z.b.Set(intOne)
rat.go#L66: z.b.Lsh(&z.b, uint(shift))
rat.go#L274: b := x.b.abs
rat.go#L290: b := x.b.abs
rat.go#L313: z.b.abs = z.b.abs.set(babs)
rat.go#L328: z.b.abs = z.b.abs.setUint64(uint64(b))
rat.go#L335: z.b.abs = z.b.abs.setWord(1)
rat.go#L342: z.b.abs = z.b.abs.setWord(1)
rat.go#L349: z.b.abs = z.b.abs.setWord(1)
rat.go#L357: z.b.Set(&x.b)
rat.go#L359: if len(z.b.abs) == 0 {
rat.go#L360: z.b.abs = z.b.abs.setWord(1)
rat.go#L386: z.a.abs, z.b.abs = z.b.abs, z.a.abs
rat.go#L401: return len(x.b.abs) == 0 || x.b.abs.cmp(natOne) == 0
rat.go#L421: if len(x.b.abs) == 0 {
rat.go#L427: return &x.b
rat.go#L436: case len(z.b.abs) == 0:
rat.go#L438: z.b.abs = z.b.abs.setWord(1)
rat.go#L443: z.b.neg = false
rat.go#L444: if f := NewInt(0).lehmerGCD(nil, nil, &z.a, &z.b); f.Cmp(intOne) != 0 {
rat.go#L446: z.b.abs, _ = z.b.abs.div(nil, z.b.abs, f.abs)
rat.go#L486: a.scaleDenom(&x.a, y.b.abs)
rat.go#L487: b.scaleDenom(&y.a, x.b.abs)
rat.go#L494: a1.scaleDenom(&x.a, y.b.abs)
rat.go#L495: a2.scaleDenom(&y.a, x.b.abs)
rat.go#L497: z.b.abs = mulDenom(z.b.abs, x.b.abs, y.b.abs)
rat.go#L504: a1.scaleDenom(&x.a, y.b.abs)
rat.go#L505: a2.scaleDenom(&y.a, x.b.abs)
rat.go#L507: z.b.abs = mulDenom(z.b.abs, x.b.abs, y.b.abs)
rat.go#L517: if len(x.b.abs) == 0 {
rat.go#L518: z.b.abs = z.b.abs.setWord(1)
rat.go#L520: z.b.abs = z.b.abs.sqr(x.b.abs)
rat.go#L525: z.b.abs = mulDenom(z.b.abs, x.b.abs, y.b.abs)
rat.go#L536: a.scaleDenom(&x.a, y.b.abs)
rat.go#L537: b.scaleDenom(&y.a, x.b.abs)
rat.go#L539: z.b.abs = b.abs
ratconv.go#L71: if z.b.abs, _, _, err = z.b.abs.scan(r, 0, false); err != nil {
ratconv.go#L78: if len(z.b.abs) == 0 {
ratconv.go#L181: pow5 := z.b.abs.expNN(natFive, nat(nil).setWord(Word(n)), nil, false) // use underlying array of z.b.abs
ratconv.go#L184: z.b.abs = z.b.abs.setWord(1)
ratconv.go#L186: z.b.abs = pow5
ratconv.go#L189: z.b.abs = z.b.abs.setWord(1)
ratconv.go#L199: z.b.abs = z.b.abs.shl(z.b.abs, uint(-exp2))
ratconv.go#L310: if len(x.b.abs) != 0 {
ratconv.go#L311: buf = x.b.Append(buf, 10)
ratconv.go#L345: q, r := nat(nil).div(nat(nil), x.a.abs, x.b.abs)
ratconv.go#L353: r, r2 := r.div(nat(nil), r, x.b.abs)
ratconv.go#L357: if x.b.abs.cmp(r2) <= 0 {
ratmarsh.go#L24: buf := make([]byte, 1+4+(len(x.a.abs)+len(x.b.abs))*_S) // extra bytes for version and sign bit (1), and numerator length (4)
ratmarsh.go#L25: i := x.b.abs.bytes(buf)
ratmarsh.go#L67: z.b.abs = z.b.abs.setBytes(buf[i:])
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |